package com.breakfast.fun.data.entity.user.recharge;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/24.
 */
public class PayBean implements Serializable {

    /**
     * alipay : partner="2088811244369510"&seller_id="3134317096@qq.com"&out_trade_no="C768292504201203712"&subject="早范"&body="早范订单结算"&total_fee="0.01"¬ify_url="http://beta.52letsgo.cn/alipay_recharge_notify"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&it_b_pay="30m"&return_url="m.alipay.com"&sign="CePaep7D6zk64dMZetjtxtrJZFCBB53%2B7Yj60NMt2PG9ItFFEq%2Fw3M%2FyekrRFXSn1YPusRIdCqL%2BX2j%2FHcIjOzY0GysGxV4MQHKFbrVa9FGblEnyAD3qmPX4GnK2bdKuah9R%2BThjIusoGYuqtxjsvSJ9hd%2FXywDHopiKcXha7i4%3D"&sign_type="RSA"
     * weiPay : {}
     * cmbpay : {}
     * umspay : {}
     * totalPrice : 0.01
     * freePrice : 0
     * orderNo : C768292504201203712
     */

    private String alipay;
    private WeiPay weiPay;
    private CmbPay cmbpay;
    private CUPpay cuppay;
    private double totalPrice;
    private double freePrice;
    private String orderNo;
    private int orderId;
    private int goodCount;
    private double accountMoney;
    private String orderTime;
    private String tip;
    private String ad;

    public static PayBean objectFromData(String str) {

        return new Gson().fromJson(str, PayBean.class);
    }

    public static List<PayBean> arrayPayBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<PayBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getAlipay() {
        return alipay;
    }

    public void setAlipay(String alipay) {
        this.alipay = alipay;
    }

    public WeiPay getWeiPay() {
        return weiPay;
    }

    public void setWeiPay(WeiPay weiPay) {
        this.weiPay = weiPay;
    }

    public CmbPay getCmbpay() {
        return cmbpay;
    }

    public void setCmbpay(CmbPay cmbpay) {
        this.cmbpay = cmbpay;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public double getFreePrice() {
        return freePrice;
    }

    public void setFreePrice(double freePrice) {
        this.freePrice = freePrice;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(int goodCount) {
        this.goodCount = goodCount;
    }

    public double getAccountMoney() {
        return accountMoney;
    }

    public void setAccountMoney(double accountMoney) {
        this.accountMoney = accountMoney;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public String getAd() {
        return ad;
    }

    public void setAd(String ad) {
        this.ad = ad;
    }

    public CUPpay getCuppay() {
        return cuppay;
    }

    public void setCuppay(CUPpay umspay) {
        this.cuppay = cuppay;
    }

    @Override
    public String toString() {
        return "PayBean{" +
                "alipay='" + alipay + '\'' +
                ", weiPay=" + weiPay +
                ", cmbpay=" + cmbpay +
                ", cuppay=" + cuppay +
                ", totalPrice=" + totalPrice +
                ", freePrice=" + freePrice +
                ", orderNo='" + orderNo + '\'' +
                ", orderId=" + orderId +
                ", goodCount=" + goodCount +
                ", accountMoney=" + accountMoney +
                ", orderTime='" + orderTime + '\'' +
                ", tip='" + tip + '\'' +
                ", ad='" + ad + '\'' +
                '}';
    }
}
